<template>
  <el-carousel indicator-position="outside">
    <el-carousel-item v-for="(item, i) in images" :key="i">
      <h3><img :src="item" class="image"/></h3>
    </el-carousel-item>
  </el-carousel>
</template>

<script>
// import Todo from './Todo.vue'

export default {
  name: 'Carousel',
  data() {
    return {
      images: [
        "http://localhost:3001/public/images/home-1.jpg",
        "http://localhost:3001/public/images/home-2.jpg",
        "http://localhost:3001/public/images/home-3.jpg",
        "http://localhost:3001/public/images/home-4.png",
      ],
    };
  },
};
</script>

<style>
.el-carousel__item h3 {
  color: #475669;
  font-size: 18px;
  opacity: 0.75;
  line-height: 300px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}

.image {
  width: 100%
}
</style>
